﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Pzgl_PzRule_Select.aspx.vb" Inherits="PubProject.Pzgl_PzRule_Select" %>
<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head runat="server">   
     	<title>选择业务类型</title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="/_common/styles/global.css" type="text/css" rel="stylesheet">
		<LINK href="/_forms/styles/form.css" type="text/css" rel="stylesheet">
		<LINK href="/_nav/menu.css" type="text/css" rel="stylesheet">
		<LINK href="/_grid/map_grid.css" type="text/css" rel="stylesheet">
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_forms/FormBase.js"></script>
		<script language="javascript" src="/_grid/rep_grid.js"></script>
			<script language="javascript" src="/PubProject/js/public.js"></script>
     <script language="javascript">
		
			//选取
			function ConfirmSel()
			{
				if (appGrid._iTotalRecords == 0) return;         //列表中没有业务类型 
				
				var arrTr = appGrid.frameElement.getSelected();
				if (!arrTr)
				{
					alert("请选择业务类型！");
					return;
				}
				
				//获取选中业务类型的GUID字符串
				var sOid = "";
				for (i = 0; i < arrTr.length;i++)
				{
					sOid += (sOid == "" ? "" : ",") + arrTr[i].oid;
				}
				
				var strReturn=openXMLHTTP("Cwjk_XMLHTTP.aspx?CwztGUID="+__CwztGUID.value,"CWJK_PzGz_YwLx_ADD",sOid)
				
				//传回调用页面
				parent.window.returnValue = strReturn;
				parent.window.opener = "";
				parent.window.close()
								
			}			
		</script>
</head>
	<body MS_POSITIONING="GridLayout" style="PADDING-RIGHT:15px;PADDING-LEFT:15px;PADDING-BOTTOM:15px;PADDING-TOP:15px">
		<table style="FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0" width="100%">
			<tr>
				<td>
					<table style="FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0" width="100%">
						<tr height="1">
							<td>
								<mnu:AppGridMenu id="appGridMenu" runat="server" />
							</td>
						</tr>
						<tr>
							<td>
								<cnt:AppGrid id="appGrid" runat="server" multiselect=true Filter="<filter/>" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
				<tr height="40">
					<td class="buttons"><button id="btnOk" onclick="ConfirmSel()" type="button" runat="server" value="确 定">确 
							定</button>&nbsp;&nbsp;<button id="btnClose" onclick="parent.window.close();" type="button"
							runat="server" value="取 消">取 消</button><asp:literal id="ltrScript" runat="server"></asp:literal>
					</td>
				</tr>			
		</table>
	</body>
</HTML>
